package cool.taomu.toolkit.watcher.entity

import java.nio.file.Path
import org.eclipse.xtend.lib.annotations.Accessors
import org.eclipse.xtend.lib.annotations.ToString

interface FileEvent {
    def Path getFile()
}

@Accessors
@ToString
class FileCreateEvent implements FileEvent {
    val Path file;

    new(Path file) {
        this.file = file;
    }
}

@Accessors
@ToString
class FileModifyEvent implements FileEvent {
    val Path file;

    new(Path file) {
        this.file = file;
    }
}


@Accessors
@ToString
class FileDeleteEvent implements FileEvent {
    val Path file;

    new(Path file) {
        this.file = file;
    }
}

